package com.itheima.Demo01.demo01;

public class EnumDemo {
    public static void main(String[] args) {
        String s1 = Season.SPRING.name;
        String s2 = Season.SUMMER.name;
        String s3 = Season.AUTUMN.name;
        String s4 = Season.WINTER.name;
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);

        Season[] values = Season.values();
        for (Season value : values) {
            System.out.println(value);

        }
    }
}
